<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="I_MultiPanelUpdate.aspx.cs" Inherits="ScottCateAjax2008.Lesson05.I_MultiPanelUpdate" Title="Multiple Update Panels" %>
<%@ Register Src="../UserControls/TimeLabelButton.ascx" TagName="TimeLabelButton" TagPrefix="ScottCate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
        <ContentTemplate>

            <ScottCate:TimeLabelButton id="TimeLabelButton1" runat="server" />
        
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <hr />
    The panel below will update only itself, becuase<br />
    the first panel is marked with UpdateMode="Conditional"
    <hr />
    
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
        
            <ScottCate:TimeLabelButton id="TimeLabelButton2" runat="server" />

            <hr />

            The button below will update both panels, check the<br />
            server side .Update call to UpdatePanel1
            
            <asp:Button ID="UpdateButton" text="Force Update" runat="server" OnClick="ForceUpdate_Click" />

        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>







